package org.keyuan.struts1.form;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionMapping;
import org.apache.struts.upload.FormFile;
import org.keyuan.entity.BookMsgFalsh;
import org.keyuan.entity.BookType;

public class BookMsgFlashForm extends BaseForm{
	private static final long serialVersionUID = -8142486185602661343L;
	private BookMsgFalsh bookMsgFalsh=new BookMsgFalsh();

	private FormFile commendImg;
	private FormFile advertImg;
	public BookMsgFlashForm() {
		this.bookMsgFalsh.setBookType(new BookType());
		this.bookMsgFalsh.setLocal(null);
	}
	public BookMsgFalsh getBookMsgFalsh() {
		return bookMsgFalsh;
	}

	public void setBookMsgFalsh(BookMsgFalsh bookMsgFalsh) {
		this.bookMsgFalsh = bookMsgFalsh;
	}

	public FormFile getCommendImg() {
		return commendImg;
	}

	public void setCommendImg(FormFile commendImg) {
		this.commendImg = commendImg;
	}

	public FormFile getAdvertImg() {
		return advertImg;
	}

	public void setAdvertImg(FormFile advertImg) {
		this.advertImg = advertImg;
	}
	@Override
	public void reset(ActionMapping mapping, HttpServletRequest request) {
		this.setCurrentPage(1);
		this.getBookMsgFalsh().setMsgTitle(null);
		super.reset(mapping, request);
	}
}
